
;------------------------------------------------------------------------------------------------
;-- G3SG1
;------------------------------------------------------------------------------------------------
[wpn_g3sg1]:identity_immunities,weapon_probability,default_weapon_params,wpn_g3sg1_sounds
GroupControlSection                      = spawn_group
$npc                                     = on
$prefetch                                = 8
$spawn                                   = "weapons\lr-300"
scheduled                                = off
cform                                    = skeleton

class                                    = WP_LR300
slot                                     = 2
animation_slot                           = 2
ef_main_weapon_type                      = 2
ef_weapon_type                           = 6
hand_dependence                          = 1
single_handed                            = 0

default_to_ruck                          = false
sprint_allowed                           = true

inv_grid_height                          = 2
inv_grid_width                           = 5
inv_grid_x                               = 30
inv_grid_y                               = 52
inv_name                                 = st_wpn_g3sg1
inv_name_short                           = st_wpn_g3sg1
description                              = st_wpn_g3sg1_descr

kind                                     = w_rifle
inv_weight                               = 4.7
cost                                     = 43980
repair_type                              = rifle_7
weapon_class                             = assault_rifle

hud                                      = wpn_g3sg1_new_hud
visual                                   = dynamics\weapons\wpn_g3sg1\wpn_g3sg1.ogf
position                                 = -0.026, -0.097, -0.021
orientation                              = 0, 0, 0
fire_point                               = 0.0, 0.171, 0.649
fire_point2                              = 0, 0.188, 0.392
strap_bone0                              = bip01_spine2
strap_bone1                              = bip01_spine1
strap_position                           = -0.16, -0.36, 0.15
strap_orientation                        = -10, -5, 10
ph_mass                                  = 3

flame_particles                          = weapons\generic_weapon05
smoke_particles                          = weapons\generic_shoot_00
grenade_flame_particles                  = weapons\generic_weapon01

shell_point			                     = 0,0.188,0.082
shell_dir			                     = 0,1,0
shell_particles	 		                 = weapons\762x51

light_disabled                           = false
light_color                              = 0.6, 0.5, 0.3
light_range                              = 5
light_time                               = 0.2
light_var_color                          = 0.05
light_var_range                          = 0.1

upgrades                                 = up_gr_firstab_g3sg1, up_gr_seconab_g3sg1, up_gr_thirdab_g3sg1, up_gr_fourtab_g3sg1, up_gr_fourtcd_g3sg1, up_gr_fourtef_g3sg1
installed_upgrades                       =
upgrade_scheme                           = upgrade_scheme_fn2000
upgr_icon_x                              = 1750
upgr_icon_y                              = 0
upgr_icon_width                          = 300
upgr_icon_height                         = 100

fire_modes                               = 1, -1
ammo_class                               = ammo_7.62x51_fmj, ammo_7.62x51_fmj_bad, ammo_7.62x51_fmj_verybad, ammo_7.62x51_ap, ammo_7.62x51_ap_bad, ammo_7.62x51_ap_verybad
ammo_elapsed                             = 20
ammo_mag_size                            = 20
startup_ammo                             = 90

scope_status                             = 1
scope_dynamic_zoom                       = off
scope_texture                            = wpn_crosshair_g3sg1
scope_zoom_factor                        = 10

silencer_status                          = 0
silencer_light_color                     = 0.6, 0.5, 0.3
silencer_light_range                     = 0.01
silencer_light_time                      = 0.2
silencer_light_var_color                 = 0.05
silencer_light_var_range                 = 0.5
silencer_smoke_particles                 = weapons\generic_shoot_00

grenade_class                            = ammo_m209, ammo_m209_bad, ammo_m209_verybad
grenade_launcher_name                    = wpn_addon_grenade_launcher_m203
grenade_launcher_status                  = 0
grenade_launcher_x                       = 128
grenade_launcher_y                       = 28
launch_speed                             = 0

hit_impulse                              = 38
hit_power                                = 0.75, 0.75, 0.75, 0.75
hit_type                                 = fire_wound
fire_distance                            = 1000
bullet_speed                             = 820
rpm                                      = 500
rpm_empty_click                          = 200

use_aim_bullet                           = false
time_to_aim                              = 0.0 ;  3.0
zoom_dof                                 = 0.5, 1.0, 180
zoom_enabled                             = true
zoom_rotate_time                         = 0.25
reload_dof                               = 0.0, 0.5, 5, 2
control_inertion_factor = 1.0f
crosshair_inertion                       = 5.6
fire_dispersion_base                     = 0.26
fire_dispersion_condition_factor         = 0.001

misfire_probability                      = 0.005
misfire_start_condition                  = 0.7 ;  0.7
misfire_start_prob                       = 0.007
misfire_end_condition                    = 0.05
misfire_end_prob                         = 0.11

condition_queue_shot_dec                 = 0.0020
condition_shot_dec                       = 0.0020

cam_return                               = 0
cam_relax_speed                          = 10
cam_dispersion                           = 1.58
cam_dispersion_frac                      = 0.7
cam_dispersion_inc                       = 1.16
cam_max_angle                            = 50.0
cam_max_angle_horz                       = 50.0
cam_step_angle_horz                      = 1.36
zoom_cam_relax_speed                     = 10
zoom_cam_dispersion                      = 0.75
zoom_cam_dispersion_frac                 = 1.0
zoom_cam_dispersion_inc                  = 0.96
zoom_cam_max_angle                       = 50.0
zoom_cam_max_angle_horz                  = 50.0
zoom_cam_step_angle_horz                 = 1.24

PDM_disp_accel_factor                    = 2.75
PDM_disp_base                            = 1.2
PDM_disp_crouch                          = 1.0
PDM_disp_crouch_no_acc                   = 1.0
PDM_disp_vel_factor                      = 2.75

cam_relax_speed_ai                       = 360
zoom_cam_relax_speed_ai                  = 360
holder_fov_modifier                      = 1.0
holder_range_modifier                    = 1.0
min_radius                               = 0
max_radius                               = 500
hit_probability_gd_novice                = 1.00
hit_probability_gd_stalker               = 1.00
hit_probability_gd_veteran               = 1.00
hit_probability_gd_master                = 1.00

kill_msg_x                               = 175
kill_msg_y                               = 0
kill_msg_width                           = 82
kill_msg_height                          = 28


[wpn_g3sg1_new_hud]:hud_base
item_visual                              = anomaly_weapons\wpn_g3sg1\wpn_g3sg1_hud.ogf
attach_place_idx                         = 0
zoom_hide_crosshair                      = true   

item_position                            = 0, 0, 0
item_orientation                         = 0, 0, 0

hands_position                           = -0.05, -0.2, 0.15
hands_position_16x9                      = -0.05, -0.2, 0.15
hands_orientation                        = 0, 0.5, 0
hands_orientation_16x9                   = 0, 0.5, 0

aim_hud_offset_pos                       = -0.09, 0.02, -0.22
aim_hud_offset_pos_16x9                  = -0.09, 0.02, -0.22
aim_hud_offset_rot                       = 0.03, 0.0165, 0.01
aim_hud_offset_rot_16x9                  = 0.03, 0.0165, 0.01

gl_hud_offset_pos                        = 0, 0, 0
gl_hud_offset_pos_16x9                   = 0, 0, 0
gl_hud_offset_rot                        = 0, 0, 0
gl_hud_offset_rot_16x9                   = 0, 0, 0

lean_hud_offset_pos                      = 0, 0, 0
lean_hud_offset_rot                      = 0, 0, 0

anm_hide                                 = g3_holster
anm_idle                                 = g3_idle
anm_idle_aim                             = g3_aim
anm_idle_moving                          = g3_move
anm_idle_sprint                          = g3_sprint
anm_reload                               = g3_reload, reload
anm_shots                                = g3_shoot, shoot
anm_show                                 = g3_draw

shell_bone                               = wpn_body
shell_dir                                = 0, 1, 0
shell_point                              = 0.021, 0.099, 0.286

fire_bone                                = muzzle
fire_bone2                               = wpn_body
fire_point                               = 0, 0, 0
fire_point2                              = 0, 0, 0

freelook_z_offset_mul					 = 0.55

[wpn_g3sg1_hud]:hud_base
item_visual                              = anomaly_weapons\wpn_g3sg1\wpn_g3sg1_hud.ogf
attach_place_idx                         = 0
zoom_hide_crosshair                      = true   

item_position                            = 0, 0, 0
item_orientation                         = 0, 0, 0

hands_position                           = -0.07, -0.19, 0.12
hands_position_16x9                      = -0.07, -0.19, 0.12
hands_orientation                        = 1.5, 1.2, 0.1
hands_orientation_16x9                   = 1.5, 1.2, 0.1

aim_hud_offset_pos                       = -0.0893, 0.006, -0.29
aim_hud_offset_pos_16x9                  = -0.0893, 0.006, -0.29
aim_hud_offset_rot                       = 0, 0.35, 0
aim_hud_offset_rot_16x9                  = 0, 0.35, 0

gl_hud_offset_pos                        = 0, 0, 0
gl_hud_offset_pos_16x9                   = 0, 0, 0
gl_hud_offset_rot                        = 0, 0, 0
gl_hud_offset_rot_16x9                   = 0, 0, 0

lean_hud_offset_pos                      = 0, 0, 0
lean_hud_offset_rot                      = 0, 0, 0

anm_hide                                 = g3sg1_holster
anm_idle                                 = g3sg1_idle
anm_idle_aim                             = g3sg1_idle
anm_idle_aim_moving                      = g3sg1_idle_moving, idle, 0.75
anm_idle_aim_moving_crouch               = g3sg1_idle_moving, idle, 0.7
anm_idle_moving                          = g3sg1_idle_moving
anm_idle_sprint                          = g3sg1_idle_sprint
anm_reload                               = g3sg1_reload1, g36_reload_w
anm_shots                                = g3sg1_shoot, g36_shoot_w
anm_show                                 = g3sg1_draw

shell_bone                               = eject
shell_dir                                = 0, 0, 0
shell_point                              = 0, 0, 0

fire_bone                                = muzzle
fire_bone2                               = grenade
fire_point                               = 0, 0, 0
fire_point2                              = 0, 0, 0


[wpn_g3sg1_sk1_hud]:wpn_g3sg1_new_hud	;wpn_g3sg1_hud
item_visual                              = anomaly_weapons\wpn_g3sg1\wpn_g3sg1_sk1_hud.ogf


;------------------------------------------------------------------------------------------------
;-- G3
;------------------------------------------------------------------------------------------------
[wpn_g3]:wpn_g3sg1,wpn_g3_sounds
parent_section                           = wpn_g3

ef_main_weapon_type                      = 2
ef_weapon_type                           = 8
hand_dependence                          = 1
single_handed                            = 0

default_to_ruck                          = false
sprint_allowed                           = true

inv_grid_height                          = 2
inv_grid_width                           = 5
inv_grid_x                               = 30
inv_grid_y                               = 56
inv_name                                 = st_wpn_g3
inv_name_short                           = st_wpn_g3
description                              = st_wpn_g3_descr

inv_weight                               = 4.63
cost                                     = 39880
weapon_class                             = assault_rifle

hud                                      = wpn_g3_hud
visual                                   = dynamics\weapons\wpn_g3\wpn_g3.ogf
position                                 = -0.026, -0.097, 0.0
orientation                              = 0, 0, 0
fire_point                               = 0, 0.163, 0.649
fire_point2                              = 0, 0.097, 0.722
strap_bone0                              = bip01_spine2
strap_bone1                              = bip01_spine1
strap_position                           = -0.16, -0.36, 0.15
strap_orientation                        = -10, -5, 10

upgrades                                 = up_gr_firstab_g3, up_gr_seconab_g3, up_gr_thirdab_g3, up_gr_fourtab_g3, up_gr_fourtcd_g3, up_gr_fourtef_g3

fire_modes                               = 1, -1
ammo_class                               = ammo_7.62x51_fmj, ammo_7.62x51_fmj_bad, ammo_7.62x51_fmj_verybad, ammo_7.62x51_ap, ammo_7.62x51_ap_bad, ammo_7.62x51_ap_verybad
ammo_elapsed                             = 20
ammo_mag_size                            = 20
startup_ammo                             = 90

scope_texture                            = 
scopes                                   = ac10632, acog, eot
scope_status                             = 0
scope_zoom_factor                        = 0

silencer_name                            = wpn_sil_nato
silencer_status                          = 2
silencer_x                               = 232
silencer_y                               = 18

grenade_class                            = ammo_m209, ammo_m209_bad, ammo_m209_verybad
grenade_launcher_status                  = 0
grenade_vel                              = 76
launch_speed                             = 76

hit_impulse                              = 35
hit_power                                = 0.58, 0.58, 0.58, 0.58
hit_type                                 = fire_wound
fire_distance                            = 1000
bullet_speed                             = 798
rpm                                      = 600
rpm_empty_click                          = 200

use_aim_bullet                           = false
time_to_aim                              = 0.0 ;  3.0
zoom_enabled                             = true
zoom_rotate_time                         = 0.25
control_inertion_factor = 1.0f
crosshair_inertion                       = 6.98
fire_dispersion_base                     = 0.29

misfire_probability                      = 0.005
misfire_start_condition                  = 0.7 ;  0.73
misfire_start_prob                       = 0.007
misfire_end_condition                    = 0.058
misfire_end_prob                         = 0.11

condition_queue_shot_dec                 = 0.0009
condition_shot_dec                       = 0.0009

cam_return                               = 0
cam_relax_speed                          = 10
cam_dispersion                           = 1.5
cam_dispersion_frac                      = 0.66
cam_dispersion_inc                       = 0.0775
cam_max_angle                            = 50.0
cam_max_angle_horz                       = 50.0
cam_step_angle_horz                      = 1.22
zoom_cam_relax_speed                     = 10
zoom_cam_dispersion                      = 1.2
zoom_cam_dispersion_frac                 = 1.0
zoom_cam_dispersion_inc                  = 0.0675
zoom_cam_max_angle                       = 50.0
zoom_cam_max_angle_horz                  = 50.0
zoom_cam_step_angle_horz                 = 1.13

cam_relax_speed_ai                       = 360
zoom_cam_relax_speed_ai                  = 360


[wpn_g3_hud]:hud_base
item_visual                              = anomaly_weapons\wpn_g3\wpn_g3_hud.ogf
attach_place_idx                         = 0
zoom_hide_crosshair                      = true   

item_position                            = 0, 0, 0
item_orientation                         = 0, 0, 0

hands_position                           = -0.05968,-0.2262,0.2
hands_position_16x9                      = -0.05968,-0.2262,0.2
hands_orientation                        = 0.8, 2.0, 0.0
hands_orientation_16x9                   = 0.8, 2.0, 0.0

aim_hud_offset_pos                       = -0.09485, 0.0878, -0.3
aim_hud_offset_pos_16x9                  = -0.09485, 0.0878, -0.3
aim_hud_offset_rot                       = 0.0365, 0.01311, -0.0051
aim_hud_offset_rot_16x9                  = 0.0365, 0.01311, -0.0051

gl_hud_offset_pos                        = 0, 0, 0
gl_hud_offset_pos_16x9                   = 0, 0, 0
gl_hud_offset_rot                        = 0, 0, 0
gl_hud_offset_rot_16x9                   = 0, 0, 0

lean_hud_offset_pos                      = 0, 0, 0
lean_hud_offset_rot                      = 0, 0, 0

anm_hide                                 = g3_holster
anm_idle                                 = g3_idle
anm_idle_aim                             = g3_aim
anm_idle_moving                          = g3_move
anm_idle_sprint                          = g3_sprint
anm_reload                               = g3_reload, reload
anm_shots                                = g3_shoot, shoot
anm_show                                 = g3_draw

shell_bone                               = wpn_body
shell_dir                                = 0, 1, 0
shell_point                              = 0.021, 0.099, 0.286

fire_bone                                = muzzle
fire_bone2                               = wpn_body
fire_point                               = 0, 0, 0
fire_point2                              = 0, 0, 0

freelook_z_offset_mul					 = 0.5

;------------------------------------------------------------------------------------------------
[wpn_g3_ac10632]:wpn_g3
1icon_layer                              = ac10632
1icon_layer_x                            = 74
1icon_layer_y                            = -3

inv_weight                               = 4.745

hud                                      = wpn_g3_ac10632_hud
visual                                   = dynamics\weapons\wpn_g3\wpn_g3_ac10632.ogf


[wpn_g3_ac10632_hud]:wpn_g3_hud
item_visual                              = anomaly_weapons\wpn_g3\wpn_g3_ac10632_hud.ogf

hands_position                           = -0.06, -0.22, 0.2
hands_position_16x9                      = -0.06, -0.22, 0.2
hands_orientation                        = 0, 3, 0
hands_orientation_16x9                   = 0, 3, 0

aim_hud_offset_pos                       = -0.0918, 0.0376, -0.33
aim_hud_offset_pos_16x9                  = -0.0918, 0.0376, -0.33
aim_hud_offset_rot                       = 0.054050, -0.0005, 0
aim_hud_offset_rot_16x9                  = 0.054050, -0.0005, 0

;------------------------------------------------------------------------------------------------
[wpn_g3_acog]:wpn_g3
1icon_layer                              = acog
1icon_layer_x                            = 72
1icon_layer_y                            = -1

inv_weight                               = 4.98

hud                                      = wpn_g3_acog_hud
visual                                   = dynamics\weapons\wpn_g3\wpn_g3_acog.ogf

scope_status                             = 0
scope_zoom_factor                        = 20


[wpn_g3_acog_hud]:wpn_g3_hud,hud_low_interia
item_visual                              = anomaly_weapons\wpn_g3\wpn_g3_acog_hud.ogf

hands_position                           = -0.06, -0.22, 0.2
hands_position_16x9                      = -0.06, -0.22, 0.2
hands_orientation                        = 0, 3, 0
hands_orientation_16x9                   = 0, 3, 0

aim_hud_offset_pos                       = -0.0921,0.0321,-0.32
aim_hud_offset_pos_16x9                  = -0.0921,0.0321,-0.32
aim_hud_offset_rot                       = 0.0385,-0.00076,-0.001
aim_hud_offset_rot_16x9                  = 0.0385,-0.00076,-0.001

;------------------------------------------------------------------------------------------------
[wpn_g3_eot]:wpn_g3
1icon_layer                              = eot
1icon_layer_x                            = 76
1icon_layer_y                            = 3

inv_weight                               = 4.93

hud                                      = wpn_g3_eot_hud
visual                                   = dynamics\weapons\wpn_g3\wpn_g3_eot.ogf


[wpn_g3_eot_hud]:wpn_g3_acog_hud
item_visual                              = anomaly_weapons\wpn_g3\wpn_g3_eot_hud.ogf

hands_position                           = -0.06, -0.22, 0.2
hands_position_16x9                      = -0.06, -0.22, 0.2
hands_orientation                        = 0, 3, 0
hands_orientation_16x9                   = 0, 3, 0

aim_hud_offset_pos                       = -0.09216,0.03592,-0.35
aim_hud_offset_pos_16x9                  = -0.09216,0.03592,-0.35
aim_hud_offset_rot                       = 0.05405,-0.0005,0
aim_hud_offset_rot_16x9                  = 0.05405,-0.0005,0

